/**
 * Created by Administrator on 2017/7/6.
 */
public class GG {
    public static void main(String[] args) {
        String a = "aaaa'aaa\\\"sadasd";
        System.out.println(a);
        System.out.println("\\");
        System.out.println(a.replaceAll("\\\\\"","\""));
        System.out.println(a.replaceAll("\\\\\'","\'"));
        System.out.println(a.replaceAll("\"","\\\\\""));
        System.out.println(a.replaceAll("'","\\\\\'"));
    }
}
